<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue属性绑定</title>
</head>
<body>
<div>
    <!--v-bind:属性绑定-->
    <input type="text" v-bind:placeholder="msg">
    <!--v-bind属性绑定的简写-->
    <input type="text" :placeholder="msg">
    <a :href="url" target="_blank">超链接</a>
    <img :src="img_url" alt="" width="200px">
</div>
<script src="../js/vue.js"></script>
<script>
    let v = new Vue({
        el: "div",
        data: {
            msg: "属性绑定测试",
            url:"http://www.baidu.com",
            img_url:"痞帅暴富.jpg"
        }
    })
</script>
</body>
</html>